This is a simplistic API that basically removes the
icon from it's old location, and adds it to its new
location.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284
return [targetPage, targetPosition, dragLocation];
}
+ _moveItem(item, newPage, newPosition) {
+ const [page, position] = this._grid.getItemPosition(item);
+ if (page === newPage && position === newPosition)
+ return;
+
+ if (page !== -1 && position !== -1)
+ this._removeItem(item);
+
+ this._addItem(item, newPage, newPosition);
+ }
+
vfunc_allocate(box) {
const width = box.get_width();
const height = box.get_height();